package svc

import (
	"doctor-medicine-system/api/internal/config"
	"doctor-medicine-system/zhoukao3rpc/zhoukao3rpcclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config      config.Config
	ZhouKao3Rpc zhoukao3rpcclient.Zhoukao3rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		ZhouKao3Rpc: zhoukao3rpcclient.NewZhoukao3rpc(zrpc.MustNewClient(c.ZhouKao3Rpc)),
	}
}
